package cn.kinoko.feign;

import cn.kinoko.model.ai.mit.req.MITTranslateReq;
import cn.kinoko.model.ai.mit.resp.MITTranslateResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author kinoko
 * @date 2024/8/13 10:40
 */
@FeignClient(name = "mit-api", url = "${ai.mit.api-endpoint:http://127.0.0.1:5003}")
public interface MITApiClient {

    @PostMapping("/translate")
    MITTranslateResp translate(@RequestBody MITTranslateReq req);

}
